﻿<p>
    This example shows the templates support in Telerik TreeView for ASP.NET MVC.
</p>

<p>You can set the template for the contents of a given item in the following way:</p>

<pre class="prettyprint">
&lt;% Html.Telerik().TreeView()
        .Name("TreeView")
        .Items(treeview =>
        {
            treeview.Add().Text("UI Components")
                <em>.Content(() =>
                {%&gt;
                    &lt;!-- template content --&gt;
                &lt;%});</em>
        })
        .Render();
%&gt;
</pre>